home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
FLC20.ARJ
/
FLC20.DOC
< prev
next >
Wrap
Text File
|
1992-08-13
|
7KB
|
182 lines
Program: FLC - File List Compare Utility
Version: 2.0
Date: 08/13/92
Author: George Spafford copyright 1992
Purpose:
To quickly compare one file list to another and generate a list of unique
files that exist in that list.
Procedure:
FLC uses configuration files. By default, it uses FLC.CFG. If you want to
have different config files for different lists, then you may specify the
name of the config file on the command line. For example:
FLC WAYNE.CFG
This example will use a config file called WAYNE.CFG rather than FLC.CFG.
==========================================
Config File Format:
==========================================
#FLC :This is a FLC config file - do not remove any lines including this
:one. For different configurations, copy this file to another name
:and edit it. For more detailed descriptions of the variables in
:this config file, consult the FLC doc file that comes with this
:package. (The FLC program is the copyright of George Spafford.)
--------------------------------------------------------------------------------
#BBSLIST:source.lst |This list will be compared
|against #YOURLIST - any
|files that only exist in
|#BBSLIST will be listed.
#YOURLIST:compare.lst |This is the comparison list.
#UNIQUELIST:unique.lst |Unique files list name
|(Specify the path if needed)
#CRITERIA: |Criteria to base searches on
|Name is always one, but more
|can be used: S=Size D=Date
|Criteria can be all of these,
|a mixture or even name only
| - for name only, do not enter
|anything.
#BBSNAMEPOS:001-012 |Name position in bytes
#BBSSIZEPOS:018-027 |Size position in bytes
#BBSDATEPOS:029-036 |Date position in bytes
#YOURNAMEPOS:001-012 |Name position in bytes
#YOURSIZEPOS:018-027 |Size position in bytes
#YOURDATEPOS:029-036 |Date position in bytes
-------------------------------------------------:<EOF>
Descriptions:
#FLC
This must be left-justified on the first line. FLC checks for this to make
sure that it has a valid file.
#BBSLIST:source.lst
This is the name of the source list. FLC will read in "source.lst" and then
compare it to "compare.lst" and list the unique files that it finds in
"source.lst".
#YOURLIST:compare.lst
This is the name of the list that the source list will be compared against.
#UNIQUELIST:unique.lst
This is the name of the file where the unique file names, size and date will
be placed.
#CRITERIA:SD
This specifies additional criteria, besides name, that will be used to confirm
whether a file is unique or not. If an "S" follows the ":" then size checking
will be turned on. If "S" is not there, then size checking will not be
performed. If a "D" follows the ":" then date checking will be turned on. If
a "D" is not present, then date checking will not be performed. You can have
both size and date checking if you so desire. The logic is this:
Do the names match?
NO - it is a unique file
EXIT
YES - Are we checking dates?
NO - Proceed with size checking
YES - Do the dates match?
NO - the file is unique
EXIT
- Are we checking file sizes?
NO - EXIT
YES - Do the dates match?
NO - the file is unique
EXIT
#BBSNAMEPOS:bbb-eee
This is where FLC can expect to find the file name in each record/line of the
list. FLC parses our a lot of junk records at this point by looking for a
"." in the file name. If it does not find a period, it assumes that the
record is invalid and it then proceeds to check for the next file name.
bbb is the starting position in bytes (characters) from the left margin.
eee is the ending position in bytes (characters) from the left margin.
This is for the list named in #BBSLIST only.
#BBSSIZEPOS:bbb-eee
Where as #BBSNAMEPOS describes the posiition of the file names, #BBSSIZEPOS
describes the location of each file listing's size entry.
#BBSDATEPOS:bbb-eee
And finally, this tells FLC where to find the date for each file entry in the
files list.
#YOURNAMEPOS:bbb-eee
#YOURSIZEPOS:bbb-eee
#YOURDATEPOS:bbb-eee
These files all describe the locations of the name, size and date of each
file entry in the list specified in #YOURLIST.
==============================================
I suggest that you look at each list that you want to check and that you
make a different config file for each list (if needed). Play around with
the position and criteria settings to find a match that best suits your needs.
==============================================
08/13/92 v2.0
Completely rewrote the program! This version is the result of
input from Tim Akright and a lot of input and debugging by Wayne
Keeter.
Please Register This Program:
This program is the result of many hours of work. It is also the result of
my purchasing many computer languages, books and third party libraries. Only
by your support can I continue to develop applications for the shareware
market. FLC is shareware, it is not public domain. If you find that the
program is useful, and you wish to continue using it, please register it
for $10 per copy. Please make payments in U.S. currency (please do not send
cash) to:
George Spafford
3001 Lakeshore Drive #329
Saint Joseph, MI 49085
I can be reached also by BBS on: Queued Access 19200-8-N-1 USR DS
FIDO: 1:2340/0 Tim Akright Sysop
SHAREWARE DISTRIBUTORS:
You may distribute this program as long as it is made clear that you are
only a distributor and that the program is not registered until they make
payment to me. Please do not charge more than $5 per disk to distribute
SDV to your customers.
::::: Legal :::::
FLC IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD) MAKES
NO WARRANTIES OF APPROPRIATENESS, MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE. THE AUTHOR ASSUMES NO LIABILITY FOR ANY DAMAGES
(INCLUDING LOST PROFITS, WAGES OR ANY OTHER CONSEQUENTIAL OR INCIDENTAL
DAMAGES) ARISING OUT OF THE MISUSE OR INABILITY TO USE THIS PRODUCT.